package oceanwiki.util;

import java.io.Serializable;

/**
 * @FileName RequestContent
 * @Description
 * @Author Me
 * @date 2024-09-19
 **/

public class RequestContent implements Serializable {
    private static ThreadLocal<String> remoteAddr = new ThreadLocal<>();

    //获取ip
    public static String getRemoteAddr() {
        return remoteAddr.get();
    }

    //存储远程ip字符串
    public static void setRemoteAddr(String remoteAddr) {
        RequestContent.remoteAddr.set(remoteAddr);
    }
}
